package com.blogsoho.taurus.services;

import com.blogsoho.taurus.vm.ContentViewModel;
import com.blogsoho.taurus.vm.ResponsePagerWrapper;
import com.blogsoho.taurus.vm.ResponseWrapper;
import com.blogsoho.taurus.vo.ContentVO;

import java.util.List;

/**
 * Created by 16978 on 2017/6/10.
 */
public interface ContentService {
    ResponseWrapper<?> addContent(ContentViewModel content);

    ResponsePagerWrapper<List<ContentVO>> getAllContent(int start, int length);

    ResponseWrapper<ContentVO> getContentById(int id);

    ResponseWrapper<?> updateContent(ContentViewModel content);

    ResponseWrapper<List<ContentVO>> getContentByCategoryId(int id);
}
